package com.zhuiyun.project.api.onlineservice.controller;

import com.zhuiyun.project.annotation.OptLog;
import com.zhuiyun.project.api.onlineservice.entity.OnlineserviceChat;
import com.zhuiyun.project.api.onlineservice.service.OnlineserviceChatService;
import com.zhuiyun.project.api.onlineservice.service.impl.OnlineserviceChatServiceImpl;
import com.zhuiyun.project.api.system.user.service.SysUserService;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.utils.constants.CommonConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * @ClassName OnlineServiceController
 * @Description TODO 在线客服
 * @Author ZSH
 * @Date 2024.3.5   15.25
 **/
@RestController
@RequestMapping("onlineservice")
@Api(tags = "uniapp端的在线客服")
public class OnlineServiceChatController {

    @Autowired
    private SysUserService service;

    @Resource
    private OnlineserviceChatServiceImpl onlineserviceChatService;


    /**
     * @Author ZSH
     * @Description 根据客服角色，查询客服名称
     * @Date 2024.3.5   15.25
     * @Return CommonResult
     */
    @GetMapping("/findsUserName")
    @OptLog(modular = "查询客服名称", type = CommonConstants.SELECT, describe = "查询客服名称")
    @ApiOperation(value = "查询所有客服名称")
    public CommonResult getTagListByUserId(){
        return service.findsUserName();
    }



}
